package com.panfeng.xcloud.boss.provider.assets.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "查询币种交易设置请求")
public class QueryStrategyReqDTO {

    @NotNull(message = "用户ID不能为null")
    @NotEmpty(message = "用户ID不能为空")
    @ApiModelProperty("用户ID")
    private String userId;

    @NotNull(message = "交易对目的币种不能为null")
    @NotEmpty(message = "交易对目的币种不能为空")
    @ApiModelProperty("交易对目的币种")
    private String destinationCoin;

    @NotNull(message = "交易对源币种不能为null")
    @NotEmpty(message = "交易对源币种不能为空")
    @ApiModelProperty("交易对源币种")
    private String sourceCoin;

    @NotNull(message = "交易所类型不能为null")
    @ApiModelProperty("交易所类型(0.okex 1.huobi 2.binance) ")
    private Integer exchangeType;

    @NotNull(message = "多空方向不能为null")
    @NotEmpty(message = "多空方向不能为空")
    @ApiModelProperty("多空方向(buy:多单 sell:空单)")
    private String direction;

}
